package com.ruoyi.zsix.service;

import com.ruoyi.zsix.domain.model.SmsEntity;
import org.activiti.api.process.model.ProcessInstance;
import org.activiti.api.task.model.Task;
import org.activiti.engine.history.HistoricProcessInstance;

import java.util.HashMap;
import java.util.List;

public interface ISmsEntityService {
    /**
     * 获取流程通知列表
     * @param sms
     * @return
     */
    List<SmsEntity> smsList(SmsEntity sms);
    /**
     * 获取流程知会列表
     * @param sms
     * @return
     */
    List<SmsEntity> ccSmsList(SmsEntity sms);
    /**
     * 已读
     * @param sms
     * @return
     */
    SmsEntity updateState(SmsEntity sms);
    /**
     * 删除
     * @param sms
     * @return
     */
    SmsEntity deleteSms(SmsEntity sms);
    /**
     * 发送流程审核消息
     * @param toUsers
     * @param sender
     * @param processInstance
     * @param task
     * @param historicProcessInstance
     * @param endTask
     * @return
     */
    String sendFlowMsg(String toUsers, String sender, ProcessInstance processInstance,
                       Task task, HistoricProcessInstance historicProcessInstance, Boolean endTask);
}
